home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 19.zip / BS1 part 19 / Lattice C disk 4.adf / Compiler_Headers / exec / types.h < prev   
C/C++ Source or Header  |  1988-10-25  |  2KB  |  59 lines

  1. #ifndef EXEC_TYPES_H
  2. #define EXEC_TYPES_H
  3. /*
  4. **    $Filename: exec/types.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #define GLOBAL    extern        /* the declaratory use of an external */
  14. #define IMPORT    extern        /* reference to an external */
  15. #define STATIC    static        /* a local static variable */
  16. #define REGISTER register   /* a (hopefully) register variable */
  17.  
  18. #define VOID        void    /* typedef does not seem to work here */
  19.  
  20. typedef long        LONG;        /* signed 32-bit quantity */
  21. typedef unsigned long    ULONG;        /* unsigned 32-bit quantity */
  22. typedef unsigned long    LONGBITS;   /* 32 bits manipulated individually */
  23. typedef short        WORD;        /* signed 16-bit quantity */
  24. typedef unsigned short    UWORD;        /* unsigned 16-bit quantity */
  25. typedef unsigned short    WORDBITS;   /* 16 bits manipulated individually */
  26. typedef char        BYTE;        /* signed 8-bit quantity */
  27. typedef unsigned char    UBYTE;        /* unsigned 8-bit quantity */
  28. typedef unsigned char    BYTEBITS;   /* 8 bits manipulated individually */
  29. typedef unsigned char    *STRPTR;    /* string pointer */
  30. typedef STRPTR        *APTR;        /* absolute memory pointer */
  31.  
  32. /* sigh.  APTR was misdefined, but compatibility rules.     Heres what it
  33.  * should have been
  34.  */
  35. typedef ULONG        CPTR;        /* absolute memory pointer */
  36.  
  37. /* For compatability only: (don't use in new code) */
  38. typedef short        SHORT;        /* signed 16-bit quantity (WORD) */
  39. typedef unsigned short    USHORT;        /* unsigned 16-bit quantity (UWORD) */
  40.  
  41.  
  42. /*    Types with specific semantics */
  43. typedef float        FLOAT;
  44. typedef double        DOUBLE;
  45. typedef short        COUNT;
  46. typedef unsigned short    UCOUNT;
  47. typedef short        BOOL;
  48. typedef unsigned char    TEXT;
  49.  
  50. #define TRUE        1
  51. #define FALSE        0
  52. #define NULL        0L
  53.  
  54. #define BYTEMASK    0xFF
  55.  
  56. #define LIBRARY_VERSION 34
  57.  
  58. #endif    /* EXEC_TYPES_H */
  59.